<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of NumericFilter
 *
 * @author Virtualidad
 */
class NumericFilter implements Filter {

    public function filter($value, array $params = array()) {
        $result = 0;
        if (is_numeric($value)) {
            $result = $value;
        }

        return $result;
    }

}

?>
